package com.hoyo.common;

/**
 * <p>Title:验证码实体</p>
 * <p>Description:用于保存手机或邮箱验证码信息</p>
 * @version 1.0
 * @author 龚文伟
 * @date 2016年11月30日
 */
public class VerifyCode {
	
	/**		code 	**/
	private String code;
	
	/**		code generate time	**/
	private long generateTime;
	
	/**		validity time	unit:mili second	**/
	private long expired;
	
	private boolean enable;

	public VerifyCode() {
	}

	public VerifyCode(String code, long generateTime, long expired, boolean enable) {
		this.code = code;
		this.generateTime = generateTime;
		this.expired = expired;
		this.enable = enable;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public long getGenerateTime() {
		return generateTime;
	}

	public void setGenerateTime(long generateTime) {
		this.generateTime = generateTime;
	}

	public long getExpired() {
		return expired;
	}

	public void setExpired(long expired) {
		this.expired = expired;
	}

	public boolean isEnable() {
		return enable;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}

	@Override
	public String toString() {
		return "VerifyCode [code=" + code + ", generateTime=" + generateTime + ", expired=" + expired + "]";
	}
}
